/*global Vue*/
import Router from 'vue-router'
import Index from '@/components/Index' //首页

import ToBar from '@/components/ToBar' //底部Bar
import Login from '@/components/view/Login.vue'
import user from '@/components/view/user.vue'
import amount from '@/components/view/amount'
import address from '@/components/view/address'
import addRaegion from '@/components/view/addRaegion'
import Edit from '@/components/view/Editdizhi'
import collect from '@/components/view/conllect'
import footmark from '@/components/view/footmark'
import fotget from '@/components/fotget.vue'
import yuan from '@/components/yuanmima.vue'
import sigin from '../components/pubild/sigin.vue'
import prolist from '../components/pubild/prolist.vue'
import cart from '../components/pubild/cart.vue'
import fenlei from '@/components/pubild/fenlei.vue'
import product from '@/components/pubild/product.vue'
import orderlist from '../components/view/orderlist.vue'
import zhifu from '../components/pubild/zhifu.vue'
import jifen from '../components/pubild/jifenpro.vue'
import jifenxiangq from '../components/pubild/productpro.vue'
import chenggong from '../components/other/chenggong.vue'
import searchVue from '../components/view/search.vue'
import carzhifu from '../components/pubild/carzhifu'
import zhuc from '../components/view/zhuv.vue'



export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            component: Index,
        }, {
            path: '/zhuc',
            component: zhuc,
            meta: { isaus: true }
        },
        {
            path: '/chenggong',
            component: chenggong,
        },
        {
            path: '/carzhifu',
            component: carzhifu,
            meta: {
                isaus: true
            }
        },
        {
            path: '/Login',
            component: Login,
            meta: { isaus: true }
        },
        {
            path: '/search',
            component: searchVue,


        },
        {
            path: '/jifen',
            component: jifen,
            // meta: {
            //     isaus: false
            // }
        },
        {
            path: '/jifenxiangq',
            component: jifenxiangq,
            meta: {
                isaus: true
            }
        },
        {
            path: '/user',
            component: user
        },
        {
            path: '/amount',
            component: amount
        },
        // 地址
        {
            path: '/address',
            component: address,
            meta: {
                isaus: true
            }
        },
        {
            path: '/addRaegion',
            component: addRaegion,
            meta: {
                isaus: true
            }
        },
        // 编辑地址
        {
            path: '/Edit',
            component: Edit,
            meta: {
                // 是否显示下面的主键 true就是不显示
                isaus: true
            }
        },
        {
            path: '/collect',
            component: collect,
            meta: {
                // 是否显示下面的主键
                isaus: true
            }
        },

        {
            path: '/footmark',
            component: footmark,
            meta: {
                // 是否显示下面的主键
                isaus: true
            }
        },
        {
            path: '/fotget',
            component: fotget,
            meta: {
                // 是否显示下面的主键
                isaus: true
            }
        },
        {
            path: '/yuan',
            component: yuan,
            meta: {
                // 是否显示下面的主键
                isaus: true
            }
        },
        {
            path: '/sigin',
            component: sigin,

        },
        {
            path: '/prolist',
            component: prolist,

        },
        {
            path: '/cart',
            component: cart,

        },
        {
            path: '/fenlei',
            component: fenlei
        },
        ,
        {
            path: '/product',
            component: product,
            meta: {
                isaus: true
            }
        }
        ,
        {
            // 订单
            path: '/orderlist',
            component: orderlist,
            meta: {
                isaus: false
            }
        },
        {
            // 支付
            path: '/zhifu',
            component: zhifu,
            meta: {
                isaus: true
            }
        }
    ]
})





// children: [{
            //         path: '',
            //         component: Index
            //     }

            // ]